//
//  UIImage+Category.h
//  OnionHome
//
//  Created by fengjie on 2019/9/13.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (Category)
//根据color返回一个image
+(nullable instancetype)createImageWithColor:(nullable UIColor *)color;
//剪裁图片
+(nullable instancetype)imageByCroppingWithImage:(nullable UIImage*)myImage;


@end

@interface UIImage (CreateQRCode)
+ (UIImage *)createQRCode:(NSString *)string andSize:(CGSize)size andColor:(UIColor *)color;
@end

NS_ASSUME_NONNULL_END
